package persistence.product;

import java.util.HashMap;
import java.util.Map;
import model.Product;

public interface ProductDAO {
    public Map<String, Product> productMap = new HashMap<String, Product>();

    public boolean createProduct(Product product);
   
    public boolean deleteProduct(String name);   
    
    public void readProduct(String name, Map<String, Product> productArray);

    public void readAllProducts(Map<Integer, Product> productArray, String so);

    public int readPageProducts(Map<Integer, Product> productArray, String so, int pagina);

    public boolean updateProduct(String name, Product product);

    public boolean setUp(String url, String driver, String user, String password);

    public void setUpMap();

    public boolean disconnect();
}
